<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var arr = [1,2,3,4];
    var arr2 = [...arr];
    var obj = {
      a: 10,
      b: 20
    }

    var obj2 = {
      ...obj
    }
    var obj3 = Object.assign({}, obj);

    // 深克隆 
    // JSON.parse(JSON.stringify())
    // lodash.js 
  </script>
</body>
</html>